package today.rocky.memory.domain.bo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author Rocky
 * @version 1.0
 * @date 2020/5/22 19:09
 * @description
 */
@Data
public class LoginParam implements Serializable {
	@NotBlank(message = "email账号不能为空")
	@Email(message = "email格式错误")
	private String email;
	@NotBlank(message = "密码不能为空")
	@Length(min = 6,max = 16,message = "密码长度应在6-16之间")
	private String password;
}
